//#pragma once
//
//#include <iostream>
//#include <string.h>
//
//extern "C" {
//	#include <librtmp/rtmp.h>
//	#include <librtmp/amf.h>
//}
//
//enum {
//	FLV_CODECID_H264 = 7,
//};
//
//typedef struct _RTMPMetadata
//{
//	// video, must be h264 type
//	unsigned int	nWidth;
//	unsigned int	nHeight;
//	unsigned int	nFrameRate;		// fps
//	unsigned int	nVideoDataRate;	// bps
//	unsigned int	nSpsLen;
//	unsigned char	Sps[8192];
//	unsigned int	nPpsLen;
//	unsigned char	Pps[8192];
//
//	// audio, must be aac type
//	bool	        bHasAudio;
//	unsigned int	nAudioSampleRate;
//	unsigned int	nAudioSampleSize;
//	unsigned int	nAudioChannels;
//	char		    pAudioSpecCfg;
//	unsigned int	nAudioSpecCfgLen;
//
//} RTMPMetadata, *LPRTMPMetadata;
//
//class RTMPWriter
//{
//public:
//	RTMPWriter(void);
//	~RTMPWriter(void);
//public:
//	// 连接到RTMP Server
//	bool connect(const char* url);
//    // 发送MetaData
//	bool sendMetadata(LPRTMPMetadata lpMetaData);
//    // 发送H264数据帧
//	bool sendH264Packet(unsigned char *data,unsigned int size,bool bIsKeyFrame,unsigned int nTimeStamp);
//
//private:
//	// 发送数据
//	int sendPacket(unsigned int nPacketType,unsigned char *data,unsigned int size,unsigned int nTimestamp);
//    // 断开连接
//	void close();
//
//private:
//	RTMP* m_pRtmp;
//};
